//index.js
//获取应用实例
var WxParse = require('../../../wxParse/wxParse.js');
var app = getApp()

Page({
  data: {

  },

  //事件处理函数
  onLoad: function (options) {
    var bgc = wx.getStorageSync('color')
    wx.setNavigationBarColor({
      frontColor: "#ffffff",
      backgroundColor: bgc,
    })
    var that = this
    var id = options.id
    var uniacid = app.siteInfo.uniacid;
    app.util.request({
      'url': 'entry/wxapp/Informage',
      'data': {
        id: id,
        uniacid: uniacid
      },
      success: function (res) {
        console.log(res)
        that.setData({
          informage: res.data.data
        })
        WxParse.wxParse('articles', 'html', res.data.data.thumbarr, that, 5);
      },
    })
  },


})
